package com.gongzhiyun.springboot3test.service;

import com.gongzhiyun.springboot3test.base.R;
import com.gongzhiyun.springboot3test.entity.TbFiles;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

public interface TbFilesService {
    String UPLOAD_DIR = "/home/gongzhiyun/upload";
    String UPLOAD_URL = "https://api.gongzhiyun.fun/uploadfiles/%s";

    R<TbFiles> upload(MultipartFile file);

    void download(Integer id, HttpServletResponse response);
}
